<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>nrf51/Source/console/console.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css" />
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="alias.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="alias.js"></script>

<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>


<script type="text/javascript">
  jQuery(document).ready(function () {
    if(gref){ // Number all _img and _table classes
      gref();
    }
  });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">nRF51 General Code Examples
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('console_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">nrf51/Source/console/console.c File Reference</div>  </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="console_8h_source.html">console.h</a>&quot;</code><br/>
<code>#include &quot;uart_legacy.h&quot;</code><br/>
</div>
<p><a href="console_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#aa232b8555bc90004009146d60152751b">NEWLINE_INPUT_LEN</a>&#160;&#160;&#160;(sizeof CONSOLE_NEWLINE_INPUT - 1)</td></tr>
<tr><td colspan="2"><h2><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom">{ <b>CONSOLE_UNINIT</b> =  0, 
<b>CONSOLE_AVAILABLE</b>
 }</td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#acadd2a5d99d952e55a4580dbc8f8739d">console_init</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise the console Init must be called prior to any other console functions. The success of <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> can be tested using the <a class="el" href="console_8c.html#a40c172c3e7e308f7dfae3a0463b6426a" title="test if the console is available">console_available()</a> function. <a class="el" href="console_8c.html#acadd2a5d99d952e55a4580dbc8f8739d" title="Initialise the console Init must be called prior to any other console functions. The success of init(...">console_init()</a> is idempotent (can be called multiple times)  <a href="#acadd2a5d99d952e55a4580dbc8f8739d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a40c172c3e7e308f7dfae3a0463b6426a">console_available</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">test if the console is available  <a href="#a40c172c3e7e308f7dfae3a0463b6426a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a288d6a3d61505a952a7454b6de7933c0">console_put_string</a> (uint8_t const *string)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a string.  <a href="#a288d6a3d61505a952a7454b6de7933c0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a8021e43ed0d7a1ff861d4816da7f6953">console_put_line</a> (uint8_t const *string)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a string and newline.  <a href="#a8021e43ed0d7a1ff861d4816da7f6953"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#abe212ad1076b2e3867f1bbdf337f0c8b">console_put_newline</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a newline (the newline output sequence)  <a href="#abe212ad1076b2e3867f1bbdf337f0c8b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a91ba50924b7d9b834bf9afb6f028b5a6">console_put_chars</a> (uint8_t const *chars, uint8_t num_chars)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a number of characters (octets)  <a href="#a91ba50924b7d9b834bf9afb6f028b5a6"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a7fdeda12b74c3c6d31e1a3868da2c83e">console_get_string</a> (uint8_t *string, uint8_t num_chars)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a number of characters (octets) and append zero-termination.  <a href="#a7fdeda12b74c3c6d31e1a3868da2c83e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#aa625988d32d91c2f10e296cfc2ba7fc4">console_get_line</a> (uint8_t *string, uint8_t max_len)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a line.  <a href="#aa625988d32d91c2f10e296cfc2ba7fc4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a87d205e18afe8214415dd1a91298a047">console_chars_available</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get number of characters sent to console.  <a href="#a87d205e18afe8214415dd1a91298a047"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#ac69f8486961878f4bf2772df04efb83e">console_get_chars</a> (uint8_t *chars, uint8_t num_chars)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read a number of characters (octets)  <a href="#ac69f8486961878f4bf2772df04efb83e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a5a3a4e7afed36a710d28bbfcd87bd5f4">console_put_char</a> (uint8_t ch)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a81c0d0329a3b22147fccfaf8ec2ef312">console_get_char</a> (void)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a04ad2ca4a04cc4c0af10f60697aa5c27">console_put_decbyte</a> (uint8_t b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the decimal ASCII representation of an 8-bit number.  <a href="#a04ad2ca4a04cc4c0af10f60697aa5c27"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a860f9446b8b623ed568e9cb2fc3812d2">console_put_decword</a> (uint16_t w)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the decimal ASCII representation of a 16-bit number.  <a href="#a860f9446b8b623ed568e9cb2fc3812d2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a285b3981903d4d7cc3cf3fd829c8c5f2">console_put_dec32bit</a> (uint32_t ww)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the decimal ASCII representation of a 32-bit number.  <a href="#a285b3981903d4d7cc3cf3fd829c8c5f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a614aac471317ed14a5093a9ec6297bf7">console_put_hexnybble</a> (uint8_t n)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the hexadecimal ASCII representation of a nybble (half an octet, four bits)  <a href="#a614aac471317ed14a5093a9ec6297bf7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#ad2c04c623a2d742eb152fe38a07d11ef">console_put_hexbyte</a> (uint8_t b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the hexadecimal ASCII representation of a byte (an octet)  <a href="#ad2c04c623a2d742eb152fe38a07d11ef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#afcba7444c77bb609aff7ed32b21dff2a">console_put_hexword</a> (uint16_t w)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the hexadecimal ASCII representation of a word (two octets)  <a href="#afcba7444c77bb609aff7ed32b21dff2a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a95646f056e633c0ba3f6b68a0edd5d70">console_put_hexbytearray</a> (uint8_t *p, uint8_t n)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a string of hexbytes.  <a href="#a95646f056e633c0ba3f6b68a0edd5d70"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#aed1839189ad48d50f53e291bd4724281">console_get_hexnybble</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read one hexadecimal digit.  <a href="#aed1839189ad48d50f53e291bd4724281"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#aad18fd449769df9326d38f3ed70c97f2">console_get_hexbyte</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read two hexadecimal digits.  <a href="#aad18fd449769df9326d38f3ed70c97f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#ae1169ccddd374a94f9ff795d12c93cb8">console_get_hexword</a> (void)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Read four hexadecimal digits.  <a href="#ae1169ccddd374a94f9ff795d12c93cb8"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="var-members"></a>
Variables</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const uint8_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a36b479ebaaa652285af2f907b036ccae">newline_input</a> [] = CONSOLE_NEWLINE_INPUT</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#a5c17753ee53acf11271975bcb1590d98">hex_tab</a> [] = &quot;0123456789ABCDEF&quot;</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static enum  { ... } &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="console_8c.html#ad7cc877b4ecf3616c649bdbc8edc647a">m_console</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Implementation of <a class="el" href="console_8h.html">console.h</a>. </p>

<p>Definition in file <a class="el" href="console_8c_source.html">console.c</a>.</p>
</div><hr/><h2>Define Documentation</h2>
<a class="anchor" id="aa232b8555bc90004009146d60152751b"></a><!-- doxytag: member="console.c::NEWLINE_INPUT_LEN" ref="aa232b8555bc90004009146d60152751b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define NEWLINE_INPUT_LEN&#160;&#160;&#160;(sizeof CONSOLE_NEWLINE_INPUT - 1)</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Subtract one for the zero termination </p>

<p>Definition at line <a class="el" href="console_8c_source.html#l00020">20</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<hr/><h2>Enumeration Type Documentation</h2>
<a class="anchor" id="a06fc87d81c62e9abb8790b6e5713c55b"></a><!-- doxytag: member="console.c::@0" ref="a06fc87d81c62e9abb8790b6e5713c55b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">anonymous enum</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Console init </p>

<p>Definition at line <a class="el" href="console_8c_source.html#l00028">28</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="acadd2a5d99d952e55a4580dbc8f8739d"></a><!-- doxytag: member="console.c::console_init" ref="acadd2a5d99d952e55a4580dbc8f8739d" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_init </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Initialise the console Init must be called prior to any other console functions. The success of <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> can be tested using the <a class="el" href="console_8c.html#a40c172c3e7e308f7dfae3a0463b6426a" title="test if the console is available">console_available()</a> function. <a class="el" href="console_8c.html#acadd2a5d99d952e55a4580dbc8f8739d" title="Initialise the console Init must be called prior to any other console functions. The success of init(...">console_init()</a> is idempotent (can be called multiple times) </p>
<dl class="post"><dt><b>Postcondition:</b></dt><dd>Interrupts required for the console I/O device (UART) are enabled. </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00034">34</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a40c172c3e7e308f7dfae3a0463b6426a"></a><!-- doxytag: member="console.c::console_available" ref="a40c172c3e7e308f7dfae3a0463b6426a" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool console_available </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>test if the console is available </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>true if console is initialised and I/O peripheral is initialised </dd>
<dd>
false if console is not initialised or I/O peripheral init failed. </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00040">40</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a288d6a3d61505a952a7454b6de7933c0"></a><!-- doxytag: member="console.c::console_put_string" ref="a288d6a3d61505a952a7454b6de7933c0" args="(uint8_t const *string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_string </td>
          <td>(</td>
          <td class="paramtype">uint8_t const *&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print a string. </p>
<p>Print a zero-terminated string of characters (octets).</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">string</td><td>Pointer to the string. </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00052">52</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a8021e43ed0d7a1ff861d4816da7f6953"></a><!-- doxytag: member="console.c::console_put_line" ref="a8021e43ed0d7a1ff861d4816da7f6953" args="(uint8_t const *string)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_line </td>
          <td>(</td>
          <td class="paramtype">uint8_t const *&#160;</td>
          <td class="paramname"><em>string</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print a string and newline. </p>
<p>Print a zero-terminated string of characters (octets) and thereafter the output newline sequence.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">string</td><td>Pointer to the string. </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00064">64</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="abe212ad1076b2e3867f1bbdf337f0c8b"></a><!-- doxytag: member="console.c::console_put_newline" ref="abe212ad1076b2e3867f1bbdf337f0c8b" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_newline </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print a newline (the newline output sequence) </p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00077">77</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a91ba50924b7d9b834bf9afb6f028b5a6"></a><!-- doxytag: member="console.c::console_put_chars" ref="a91ba50924b7d9b834bf9afb6f028b5a6" args="(uint8_t const *chars, uint8_t num_chars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_chars </td>
          <td>(</td>
          <td class="paramtype">uint8_t const *&#160;</td>
          <td class="paramname"><em>chars</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>num_chars</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print a number of characters (octets) </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">chars</td><td>Pointer to the characters </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num_chars</td><td>Number of characters to print </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00086">86</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a7fdeda12b74c3c6d31e1a3868da2c83e"></a><!-- doxytag: member="console.c::console_get_string" ref="a7fdeda12b74c3c6d31e1a3868da2c83e" args="(uint8_t *string, uint8_t num_chars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_get_string </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>num_chars</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read a number of characters (octets) and append zero-termination. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">string</td><td>Pointer to characters </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num_chars</td><td>Number of characters to read. </td></tr>
  </table>
  </dd>
</dl>
<dl class="warning"><dt><b>Warning:</b></dt><dd>: Note that due to the appended zero termination, there must be room for num_chars + 1 octets in the space pointed to by argument chars. </dd></dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00098">98</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="aa625988d32d91c2f10e296cfc2ba7fc4"></a><!-- doxytag: member="console.c::console_get_line" ref="aa625988d32d91c2f10e296cfc2ba7fc4" args="(uint8_t *string, uint8_t max_len)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_get_line </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>max_len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read a line. </p>
<p>Read characters until end of line or until a maximum number of characters have been read, whatever comes first. The characters read are returned as a zero-terminated string (withouth the newline).</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>The function has a limitation in that it assumes that if the start of a newline sequence is found, the rest of the newline sequence must follow. The consequence of this is that if a leading part of the newline sequence (the "leading part") is found in the input, followed by something that is not the rest of the newline sequence, both the leading part and the first part of what follows will be silently discarded. (The practical reason for this behaviour is the limitation on string length given by the max_len parameter combined with the fact that hal_uart does not provide a means of "putting back" already read characters. It is possible to implement the function is such a way that this limitation would apply only when the string is too full to fit a number of characters equal to the number of characters in a newline sequence. Letting it apply all the time seems more consistent, though.)</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">string</td><td>Pointer to the string </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">max_len</td><td>Maximum length of string, including zero terminator. Note that max_len must be at least two (max_len &gt;= 2). </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00113">113</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a87d205e18afe8214415dd1a91298a047"></a><!-- doxytag: member="console.c::console_chars_available" ref="a87d205e18afe8214415dd1a91298a047" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool console_chars_available </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get number of characters sent to console. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of characters (0..255) </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00151">151</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="ac69f8486961878f4bf2772df04efb83e"></a><!-- doxytag: member="console.c::console_get_chars" ref="ac69f8486961878f4bf2772df04efb83e" args="(uint8_t *chars, uint8_t num_chars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_get_chars </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>chars</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>num_chars</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read a number of characters (octets) </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">chars</td><td>Pointer to characters </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">num_chars</td><td>Number of characters to read </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00156">156</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a5a3a4e7afed36a710d28bbfcd87bd5f4"></a><!-- doxytag: member="console.c::console_put_char" ref="a5a3a4e7afed36a710d28bbfcd87bd5f4" args="(uint8_t ch)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_char </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>ch</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Write a single character (octet)</p>
<p>This function is nothing but a direct wrapper for hal_uart_putchar(). It is provided here for completeness only. You may consider to use hal_uart_putchar() directly instead. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ch</td><td>Character to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00171">171</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a81c0d0329a3b22147fccfaf8ec2ef312"></a><!-- doxytag: member="console.c::console_get_char" ref="a81c0d0329a3b22147fccfaf8ec2ef312" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t console_get_char </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read a single character (octet)</p>
<p>This function is a wrapper for hal_uart_getchar(), with the additional opption of echo of input to output (if the console module is so configured, see the module documentation). </p>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Read character </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00180">180</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a04ad2ca4a04cc4c0af10f60697aa5c27"></a><!-- doxytag: member="console.c::console_put_decbyte" ref="a04ad2ca4a04cc4c0af10f60697aa5c27" args="(uint8_t b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_decbyte </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print the decimal ASCII representation of an 8-bit number. </p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>: This function is larger and more complex than the corresponding functions to write hexadecimal representations.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>Number in the range [0 255] </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00194">194</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a860f9446b8b623ed568e9cb2fc3812d2"></a><!-- doxytag: member="console.c::console_put_decword" ref="a860f9446b8b623ed568e9cb2fc3812d2" args="(uint16_t w)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_decword </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print the decimal ASCII representation of a 16-bit number. </p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>: This function is larger and more complex than the corresponding functions to write hexadecimal representations.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>Number in the range [0 65535] </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00225">225</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a285b3981903d4d7cc3cf3fd829c8c5f2"></a><!-- doxytag: member="console.c::console_put_dec32bit" ref="a285b3981903d4d7cc3cf3fd829c8c5f2" args="(uint32_t ww)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_dec32bit </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>ww</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print the decimal ASCII representation of a 32-bit number. </p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>: This function is larger and more complex than the corresponding functions to write hexadecimal representations.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">ww</td><td>Number in the range [0 4294967295] </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00281">281</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a614aac471317ed14a5093a9ec6297bf7"></a><!-- doxytag: member="console.c::console_put_hexnybble" ref="a614aac471317ed14a5093a9ec6297bf7" args="(uint8_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_hexnybble </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>n</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print the hexadecimal ASCII representation of a nybble (half an octet, four bits) </p>
<p>Four bits (a nybble) equals one hexadecimal digit.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td>A number from zero to 15, both inclusive </td></tr>
  </table>
  </dd>
</dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00413">413</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="ad2c04c623a2d742eb152fe38a07d11ef"></a><!-- doxytag: member="console.c::console_put_hexbyte" ref="ad2c04c623a2d742eb152fe38a07d11ef" args="(uint8_t b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_hexbyte </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print the hexadecimal ASCII representation of a byte (an octet) </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td>A byte (an octet) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00422">422</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="afcba7444c77bb609aff7ed32b21dff2a"></a><!-- doxytag: member="console.c::console_put_hexword" ref="afcba7444c77bb609aff7ed32b21dff2a" args="(uint16_t w)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_hexword </td>
          <td>(</td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>w</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print the hexadecimal ASCII representation of a word (two octets) </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">w</td><td>A word (sixten-bits, two octets) </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00429">429</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a95646f056e633c0ba3f6b68a0edd5d70"></a><!-- doxytag: member="console.c::console_put_hexbytearray" ref="a95646f056e633c0ba3f6b68a0edd5d70" args="(uint8_t *p, uint8_t n)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void console_put_hexbytearray </td>
          <td>(</td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>p</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>n</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Print a string of hexbytes. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>a pointer to the first element </td></tr>
    <tr><td class="paramname">n</td><td>the length of the array </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00435">435</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="aed1839189ad48d50f53e291bd4724281"></a><!-- doxytag: member="console.c::console_get_hexnybble" ref="aed1839189ad48d50f53e291bd4724281" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t console_get_hexnybble </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read one hexadecimal digit. </p>
<p>Read the hexadecimal ASCII representation of a nybble (half an octet, four bits)</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>: The function returns zero on invalid input (i.e. input that is not an hexadecimal digit).</dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A number from zero to 15, both inclusive </dd></dl>
<dl class="pre"><dt><b>Precondition:</b></dt><dd>only works if <a class="el" href="group__flashwrite__example.html#ga17fb021b480a1f220d2579807fa2e398">init()</a> previously called </dd></dl>
<dl class="note"><dt><b>Note:</b></dt><dd>We have encountered something that is not a hexadecimal digit. This is an error, and it is not reported. An <a class="el" href="nrf__assert_8h.html#a28301f76c53b643912da7c538f74e2c6" title="Assert empty when disabled.">ASSERT(false)</a> would be suitable here. </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00449">449</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="aad18fd449769df9326d38f3ed70c97f2"></a><!-- doxytag: member="console.c::console_get_hexbyte" ref="aad18fd449769df9326d38f3ed70c97f2" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t console_get_hexbyte </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read two hexadecimal digits. </p>
<p>Read the hexadecimal ASCII representation of a byte (an octet)</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>: Invalid input: Input characters that are not hexadecimal digits are treated as the hexadecimal digit zero.</dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A number from zero to 255, both inclusive </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00482">482</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="ae1169ccddd374a94f9ff795d12c93cb8"></a><!-- doxytag: member="console.c::console_get_hexword" ref="ae1169ccddd374a94f9ff795d12c93cb8" args="(void)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t console_get_hexword </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Read four hexadecimal digits. </p>
<p>Read the hexadecimal ASCII representation of a word (16 bits)</p>
<dl class="warning"><dt><b>Warning:</b></dt><dd>: Invalid input: Input characters that are not hexadecimal digits are treated as the hexadecimal digit zero.</dd></dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A number from zero to 65535, both inclusive </dd></dl>

<p>Definition at line <a class="el" href="console_8c_source.html#l00489">489</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<hr/><h2>Variable Documentation</h2>
<a class="anchor" id="a36b479ebaaa652285af2f907b036ccae"></a><!-- doxytag: member="console.c::newline_input" ref="a36b479ebaaa652285af2f907b036ccae" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const uint8_t <a class="el" href="console_8c.html#a36b479ebaaa652285af2f907b036ccae">newline_input</a>[] = CONSOLE_NEWLINE_INPUT<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Needed to compare input against to find end of line </p>

<p>Definition at line <a class="el" href="console_8c_source.html#l00019">19</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="a5c17753ee53acf11271975bcb1590d98"></a><!-- doxytag: member="console.c::hex_tab" ref="a5c17753ee53acf11271975bcb1590d98" args="[]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char <a class="el" href="console_8c.html#a5c17753ee53acf11271975bcb1590d98">hex_tab</a>[] = &quot;0123456789ABCDEF&quot;<code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Table of ASCII hexadecimal digits </p>

<p>Definition at line <a class="el" href="console_8c_source.html#l00022">22</a> of file <a class="el" href="console_8c_source.html">console.c</a>.</p>

</div>
</div>
<a class="anchor" id="ad7cc877b4ecf3616c649bdbc8edc647a"></a><!-- doxytag: member="console.c::m_console" ref="ad7cc877b4ecf3616c649bdbc8edc647a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum { ... }   <a class="el" href="console_8c.html#ad7cc877b4ecf3616c649bdbc8edc647a">m_console</a><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Console init </p>

</div>
</div>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="console_8c.html">console.c</a>      </li>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


    <li class="footer">
      Copyright &copy 2006-2011 <a href="http://www.nordicsemi.no" style="text-decoration:none">Nordic Semiconductor</a>.
      All Rights Reserved.
      <a href="disclaimer.html">Disclaimer</a>
    </li>
   </ul>
 </div>


</body>
</html>
